#nullable enable
using System;

namespace REP.Domain.Entities
{
    /// <summary>
    /// 实体基类（所有通用字段，均可为空）
    /// </summary>
    public class BaseEntity
    {
        /// <summary>主键 Id</summary>
        public Guid? Id { get; set; }
        /// <summary>业务编码/编号</summary>
        public string? Code { get; set; }
        /// <summary>名称</summary>
        public string? Name { get; set; }
        /// <summary>版本/版次</summary>
        public string? Version { get; set; }
        /// <summary>状态</summary>
        public string? Status { get; set; }
        /// <summary>备注</summary>
        public string? Remark { get; set; }
        /// <summary>创建人</summary>
        public string? CreatedBy { get; set; }
        /// <summary>创建时间</summary>
        public DateTime? CreatedAt { get; set; }
        /// <summary>更新人</summary>
        public string? UpdatedBy { get; set; }
        /// <summary>更新时间</summary>
        public DateTime? UpdatedAt { get; set; }
        /// <summary>软删除标记</summary>
        public bool? IsDeleted { get; set; }
        /// <summary>租户 Id（可选）</summary>
        public string? TenantId { get; set; }
    }
}
